package class02;

import java.util.HashMap;

/**
 * @author Gong Cheng
 * @date 2021/2/25 5:20 下午
 **/
public class HashMapAndSortedMap {
    public static void main(String[] args) {
        HashMap<Integer, String> map = new HashMap<>();
        map.put(1,"我是1");
        map.put(2,"我是2");
        map.put(3,"我是3");
        map.put(4,"我是4");
        map.put(5,"我是6");

        System.out.println(map.containsKey(1));
        System.out.println(map.containsKey(10));

        System.out.println(map.get(4));
        System.out.println(map.get(10));
    }
}
